// pages/myindex/myindex.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    images: [{
      id: 1,
      url: "http://hbimg.huaban.com/721ec2b403781e64e99562fc5a060599ec5ac86b3d7f8a-VDxIPu",
     
    },
    {
      id: 2,
      url: "https://p3.itc.cn/images01/20210628/cb9e857145494203a2614eef01ea87d5.jpeg",
  
    },
    {
      id: 3,
      url: "http://hbimg.huaban.com/9aca7cf33ffe14e09547fe84a04fc99f276897a29de03-eMgyif",
    },
    {
      id:4,
      url:"http://5b0988e595225.cdn.sohucs.com/images/20180126/b7b2f446d3e34c9e814c5690c38a2474.jpeg"
    }
    ],
    icons: [{
      id: 1,
      url: "https://img.icons8.com/?size=100&id=PA2roXfuHYpW&format=png&color=000000",
      name:"Bulueberry"
    },
    {
      id: 2,
      url: "https://img.icons8.com/?size=100&id=N3YhTjHIENLE&format=png&color=000000",
      name:"Cherry"
    },
    {
      id: 3,
      url: "https://img.icons8.com/?size=100&id=WsAEBc9VDLm3&format=png&color=000000  ",
      name:"Grapes"
    },
    {
      id: 4,
      url: "https://img.icons8.com/?size=100&id=SRBNGzl2dc2m&format=png&color=000000",
      name:"Raspberry"
    },
    {
      id: 5,
      url: "https://img.icons8.com/?size=100&id=ejmOimUK9P9a&format=png&color=000000",
      name:"Strawberry"
    },
     {
      id: 6,
      url: "https://img.icons8.com/?size=100&id=P5EZaerMsATR&format=png&color=000000  ",
      name:"Apple"
    } , 
    {
      id: 7,
      url: "https://img.icons8.com/?size=100&id=Qgy7Ez6mw2ld&format=png&color=000000",
      name:"Avocado"
    },
     {
      id: 8,
      url: "https://img.icons8.com/?size=100&id=uEAVGJdASskb&format=png&color=000000",
      name:"Pear"
    },
     {
      id: 9,
      url: "https://img.icons8.com/?size=100&id=f6GFzqAstgSQ&format=png&color=000000",
      name:"Kiwi"
    }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
      // 通过 getTabBar 接口获取组件实例，并调用 setData 更新选中态
      this.getTabBar().setData({active: 0}) 
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})